package com.itstherules.jmsunit.expectation;

import com.itstherules.jmsunit.expectation.JmsExpectation;
import com.itstherules.jmsunit.headers.JmsHeadersDefinition;


public final class Expectations {

	private static final JmsHeadersDefinitions DEFINITIONS = new JmsHeadersDefinitions();
		
	public static JmsHeadersDefinition headers(String name){
		return DEFINITIONS.get(name);
	}

	public static JmsExpectation anything() {
		return new AlwaysGoodExpectation();
	}

	public static JmsExpectation headersDefinitionEq(String expectedDefinition){
		return headersEq(headers(expectedDefinition));
	}
	
	public static JmsExpectation eq(String expected){
		return new TextEqualsExpectation(expected);
	}
	
	public static JmsExpectation headersEq(JmsHeadersDefinition expectedDefinition){
		return new HeadersEqualsExpectation(expectedDefinition);
	}
}
